package com.waste.game.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.lang.NonNull;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserPlBean implements Serializable {
    private Integer id;
    private Integer articleId;
    @NotBlank
    private String visitorName;
    @NonNull
    @Pattern(regexp = "^[A-Za-z]{1,40}@[A-Za-z0-9]{1,40}\\\\\\\\.[A-Za-z]{2,3}$")
    private String userEmail;
    @NotBlank
    private String commentContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    private Integer parentId;
    private List<UserPlBean> childList =new ArrayList<>();
    @NonNull
    private Integer userId;
    @NonNull
    private Integer type;
    private String aite;
    @NonNull
    private String userImg;

    @NonNull
    private Integer userLikeNum;
    @NonNull
    private String likeUserId;
    @NonNull
    private Integer likeUserMy;
    private Integer adminType;
    private Integer hf;
}
